package com.yyz.zjjcms.controller.admin;

import javax.annotation.Resource;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.yyz.helper.Pagenation;

import com.yyz.zjjcms.model.User;
import com.yyz.zjjcms.service.UserService;

@RestController
@RequestMapping("/admin/user")
public class UserController extends AdminController{
	
	@Resource
	UserService us;
	@RequestMapping(value="/getallUser",method=RequestMethod.POST)
	
	public Pagenation<User> getAllUser(
			@RequestParam(defaultValue = "1", required = false) int page,
			@RequestParam(defaultValue = "10", required = false) int rows){
		return us.getAllUser(page,rows);
	}
	
	
}
